import { httpGet, httpPost, httpPut } from '@/utils/http'

/**
 * 登录
 * @param {*} params
 */
export const loginApi = (data) => {
  return httpPost('/api/admin/login', data)
}

/**
 * 获取系统配置
 * @param {*} params
 */
export const getConfigApi = (data) => {
  return httpGet('/api/admin/config', data)
}

/**
 * 修改系统配置
 * @param {*} params
 */
export const updateConfigApi = (data) => {
  return httpPut('/api/admin/config', data)
}

/**
 *
 * 上传文件
 * @param file
 */
export const uploadApi = (data) => {
  return httpPost('/api/common/file', data)
}
